#include "bsp_beep.h"


void beep_clk_Init()
{
     CCM->CCGR0=0xFFFFFFFF;
     CCM->CCGR1=0xFFFFFFFF;
     CCM->CCGR2=0xFFFFFFFF;
     CCM->CCGR3=0xFFFFFFFF;
     CCM->CCGR4=0xFFFFFFFF;
     CCM->CCGR5=0xFFFFFFFF;
     CCM->CCGR6=0xFFFFFFFF;
}
void beep_init()
{
    //IOMUXC_UART1_RTS_B_GPIO1_IO19
    IOMUXC_SetPinMux(IOMUXC_UART1_RTS_B_GPIO1_IO19,0);
    IOMUXC_SetPinConfig(IOMUXC_UART1_RTS_B_GPIO1_IO19,0x10b0);
    GPIO1->GDIR = 0x80000;
}
void beep_OFF()
{
   GPIO1->DR = 0;
}
void beep_ON()
{
    GPIO1->DR = 0x80000;
}